from appium import webdriver
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '4.4.2'
desired_caps['deviceName'] = '127.0.0.1:62001'
desired_caps['appPackage'] ='com.example.myapplication'
desired_caps['appActivity'] ='.MainActivity'
desired_caps['noReset'] = True
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
driver.find_element_by_name("Add Contact").click()
#通过 send_key()模拟键盘输入
driver.find_element_by_id("")
driver.quit()